<?php
include('auth.php');
include('../config.php');
			
// MySQL Server Connection
mysql_connect($host,$username,$password);
mysql_select_db($database);

$name = $_SESSION['Admin'];
		  
$userName =  mysql_query("SELECT * FROM saufanten WHERE name ='".$name."'");
$userName =  mysql_fetch_array($userName);



echo('Kontoinformationen ändern für Nutzer <b>'.$name.':</b><br/>');
echo('<div style="margin-top:30px;"> Neue Mailadresse:<br/>');
echo( '<input type="input" id="mail" value="'.$userName['mail'].'" style="margin-top:8px;" /><br/><br/> ');		
echo('</div><div style="margin-top:20px;">Neues Passwort zwei Mal eingeben:</div><div><br /><font size="-3"><i>(leer lassen für keine Änderung)</i></font><br/>
		');
		
echo('<input type="password" id="password1" value="" style="width:180px; margin-top:8px;" /><br>
		');

echo(' <input type="password" id="password2" value="" style="width:180px; margin-top:2px;" /></div>
	   ');
echo(' <input type="button" id="pay" value="speichern" style="margin-top:30px;" onclick="changeAccountSetting(\''.$userName['name'].'\');" />
	   ');
?>